package com.supinfo.suptracking.dao;

import com.supinfo.suptracking.entity.Car;
import com.supinfo.suptracking.entity.Invoice;
import com.supinfo.suptracking.entity.User;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Fabien, Jérémy, Ludovic, Brice
 */

@Local
public interface UserDao {

     boolean isAdminUser(User user);
     List<User> getAllUser();
     User getUserByCar(Car car);
     User getUserByInvoice(Invoice invoice);
     User getUserByUsername(String username);
     User getUserByMail(String mail);
     void addUser(User user);
     void delUser(User user);
     void delUser(Long id);
     void updateUser(User user);
}
